const getDefaultState = () => {
  return {
    i: '', // ID
    m: '', // module
    r: '', // referer
    s: '' // scene
  }
}

const state = getDefaultState()

const mutations = {
  setData(state, data) {
    state.i = data.i
    state.m = data.m
    state.r = data.r
  },
  setScene(state, scene) {
    state.s = scene
  }
}

export default {
  namespaced: true,
  state,
  mutations
}

